<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_task". 
 */
class TCourseTaskReport extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_task_report';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['report_score', 'del_flag'], 'integer'],
            [['report_title', 'report_content', 'report_status'], 'string'],
            [['create_time', 'update_time'], 'safe'],
            [['report_content'], 'string', 'max' => 3000],
            [['task_id','major_id','group_id','create_by','update_by'], 'string', 'max' => 36],
            [['report_title'], 'string', 'max' => 128],
            [['report_status'], 'string', 'max' => 64],
            [['old_id'], 'string', 'max' => 36],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'task_id' => Yii::t('app', '任务id'),
            'group_id' => Yii::t('app', '分组id'),
            'report_title' => Yii::t('app', '标题'),
            'report_content' => Yii::t('app', '内容'),
            'report_score' => Yii::t('app', '分数'),
            'report_status' => Yii::t('app', '状态'),
            'major_id' => Yii::t('app', '专业ID'),
            'create_by' => Yii::t('app', 'Create By'),
            'create_time' => Yii::t('app', 'Create Time'),
            'update_by' => Yii::t('app', 'Update By'),
            'update_time' => Yii::t('app', 'Update Time'),
            'del_flag' => Yii::t('app', 'Del Flag'),
        ];
    }
}
